package com.easemob.media;

import android.content.Context;
import com.easemob.util.EMLog;

public class AVNative
{
  static final String TAG = AVNative.class.getSimpleName();

  static
  {
    System.loadLibrary("easemob_jni");
  }

  native int nativeVoeClient_Register(IGxStatusCallback paramIGxStatusCallback, Context paramContext, int paramInt1, String paramString1, int paramInt2, String paramString2, String paramString3, int paramInt3, String paramString4, String paramString5, boolean paramBoolean, int paramInt4);

  native int nativeVoeClient_FullDuplexSpeech(String paramString);

  native int nativeVoeClient_Stop(String paramString);

  native int nativeVoeClient_Release(String paramString);

  native int nativeVoeClient_GetAudioLevel(String paramString);

  native int nativeVoeClient_StartRecodeMic(IGxStatusCallback paramIGxStatusCallback, Context paramContext, String paramString1, String paramString2);

  native int nativeVoeClient_StopRecodeMic(String paramString);

  native int nativeVoeClient_GetAudioOutputLevel(String paramString);

  public native int nativeProcessPcm(byte[] paramArrayOfByte, int paramInt, String paramString);

  public int register(IGxStatusCallback paramIGxStatusCallback, Context paramContext, int paramInt1, String paramString1, int paramInt2, String paramString2, String paramString3, int paramInt3, String paramString4, String paramString5, boolean paramBoolean, int paramInt4)
  {
    EMLog.v(TAG, "VoeEngine register local_port = " + paramInt1);
    EMLog.v(TAG, "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! " + paramString3 + ";" + paramString3.length());
    EMLog.v("PASSWORD", "register with password:" + paramString5);
    int i = nativeVoeClient_Register(paramIGxStatusCallback, paramContext, paramInt1, paramString1, paramInt2, paramString2, paramString3.trim(), paramInt3, paramString4, paramString5, paramBoolean, paramInt4);
    EMLog.v(TAG, "VoeEngine register have registered index:" + i + "conferenceId:" + paramString3);
    return i;
  }

  public int unregister(String paramString)
  {
    EMLog.v(TAG, "VoeEngine unregister conferenceId:" + paramString);
    return nativeVoeClient_Release(paramString);
  }

  public int stop(String paramString)
  {
    EMLog.v(TAG, "VoeEngine stop conferenceId:" + paramString);
    return nativeVoeClient_Stop(paramString);
  }

  public int setFullDuplexSpeech(String paramString)
  {
    EMLog.v(TAG, "VoeEngine setFullDuplexSpeech conferenceId:" + paramString);
    return nativeVoeClient_FullDuplexSpeech(paramString);
  }

  public int GetAudioInputLevel(String paramString)
  {
    EMLog.v(TAG, "VoeEngine setFullDuplexSpeech conferenceId:" + paramString);
    return nativeVoeClient_GetAudioLevel(paramString);
  }

  public int GetAudioOutputLevel(String paramString)
  {
    EMLog.v(TAG, "VoeEngine setFullDuplexSpeech conferenceId:" + paramString);
    return nativeVoeClient_GetAudioOutputLevel(paramString);
  }

  public native int nativeStartVideo(IGxStatusCallback paramIGxStatusCallback, int paramInt1, int paramInt2, String paramString1, String paramString2, short paramShort, String paramString3, int paramInt3, int paramInt4, int paramInt5);

  public native void nativeStopVideo();

  public native int nativeProcessYUV(int paramInt1, int paramInt2, byte[] paramArrayOfByte);

  public native void nativeInit(EMVideoCallBridge paramEMVideoCallBridge);

  public native void nativeQuit();

  public native void nativePause();

  public native void nativeResume();

  public native void onNativeResize(int paramInt1, int paramInt2, int paramInt3);

  public native void onNativeKeyDown(int paramInt);

  public native void onNativeKeyUp(int paramInt);

  public native void onNativeTouch(int paramInt1, int paramInt2, int paramInt3, float paramFloat1, float paramFloat2, float paramFloat3);

  public native void onNativeAccel(float paramFloat1, float paramFloat2, float paramFloat3);
}

/* Location:           D:\hygieia\userclient\common\libs\easemobchat_2.1.8.jar
 * Qualified Name:     com.easemob.media.AVNative
 * JD-Core Version:    0.6.1
 */